package com.shop.controller;

import com.shop.service.Pms_Sku_Sale_Value_Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * sku销售属性&值
 */
@RestController
@RequestMapping("/sku_sale_value")
public class Pms_Sku_Sale_Value_Controller {
    @Autowired
    private Pms_Sku_Sale_Value_Service pms_sku_sale_value_service;

    /**
     * 根据商品的skuID查询商品的属性&值
     * @param skuId
     * @return
     */
    @GetMapping("/get_web_Sku_Sale_Values/{skuId}")
    public List<String> get_web_Sku_Sale_Values(@PathVariable("skuId") Long skuId){
        return pms_sku_sale_value_service.get_web_Sku_Sale_Values(skuId);
    }


}
